package top.xxyu.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.*;

@Data
@Slf4j
@Entity
@Table(name = "mail_message")
public class MailMessage {

    @Id
    private String id;
    @Column
    private String subject;
    @Column
    private String context;
    @Column
    private String toUser;
    @Column
    private String fromUser;
    @Column
    private String filepath;
    /**
     * 0未发送
     * 1已发送
     */
    @Column
    private int status;
    /**
     * 0成功
     * 1失败
     */
    @Column
    private int sendingResult;

    @Transient
    private UserMail fromUserMail;



}
